package com.core.tool.generate;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

public class FrameworkGenerate {
	public static void main(String[] args) {

		Resource serviceResource = new ClassPathResource(
				"applicationContext-template.xml");
		BeanFactory serviceBeanFactory = new XmlBeanFactory(serviceResource);

		GenerateTool gt = (GenerateTool) serviceBeanFactory
				.getBean("generateTool");

		gt.autoGenerateClass("Channel", "cms");
	}
}
